package com.blueocean_health.care.management.common.excel;


public class ExcelHeader implements Comparable<ExcelHeader>{

	/**
     * excel的标题名称
     */
    private String title;
    /**
     * 每一个标题的顺序
     */
    private int order;
    /**
     * 说对应方法名称
     */
    private String methodName;
    private int isNum;

    public int getIsNum() {
		return isNum;
	}
	public void setIsNum(int isNum) {
		this.isNum = isNum;
	}
	public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public int getOrder() {
        return order;
    }
    public void setOrder(int order) {
        this.order = order;
    }
    public String getMethodName() {
        return methodName;
    }
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
    @Override
    public int compareTo(ExcelHeader o) {
        return order>o.order?1:(order<o.order?-1:0);
    }
//    public ExcelHeader(String title, int order, String methodName) {
//        super();
//        this.title = title;
//        this.order = order;
//        this.methodName = methodName;
//    }
	public ExcelHeader(String title, int order, String methodName, int isNum) {
		super();
		this.title = title;
		this.order = order;
		this.methodName = methodName;
		this.isNum = isNum;
	}
    
}

